package ocl;


public class CaretExpression extends OclExpression {

	OclExpression exp;
	SimpleName name;
	
	public CaretExpression(OclExpression oclExpression, SimpleName simpleName) {
		this.exp = oclExpression;
		this.name = simpleName;
	}

	@Override
	public String toK() {
		return this.exp.toK() + "^" + name.toK() + "()";
	}
}
